<?php
/* @var $this LienheController */
/* @var $model Lienhe */
/* @var $form CActiveForm */
?>

<div class="form">

    <?php
    $form = $this->beginWidget('CActiveForm', array(
        'id' => 'lienhe-_lienheluatsu-form',
        // Please note: When you enable ajax validation, make sure the corresponding
        // controller action is handling ajax validation correctly.
        // See class documentation of CActiveForm for details on this,
        // you need to use the performAjaxValidation()-method described there.
        'enableAjaxValidation' => false,
    ));
    ?>


    <?php echo $form->errorSummary($model); ?>

    <div class="clear"></div>
    <div class="form_left">
        <?php echo $form->labelEx($model, 'hovaten'); ?>
    </div>
    <div class="form_right">
        <?php echo $form->textField($model, 'hovaten',array('size' => 70, 'maxlength' => 100, 'required' => 'required')); ?>
        <?php echo $form->error($model, 'hovaten'); ?>
    </div>

    <div class="clear"></div>
    <div class="form_left">
        <?php echo $form->labelEx($model, 'diachi'); ?>
    </div>
    <div class="form_right">
        <?php echo $form->textField($model, 'diachi',array('size' => 70, 'maxlength' => 200, 'required' => 'required')); ?>
        <?php echo $form->error($model, 'diachi'); ?>
    </div>

    <div class="clear"></div>
    <div class="form_left">
        <?php echo $form->labelEx($model, 'didong'); ?>
    </div>
    <div class="form_right">
        <?php echo $form->textField($model, 'didong',array('size' => 50, 'maxlength' => 50, 'required' => 'required')); ?>
        <?php echo $form->error($model, 'didong'); ?>
    </div>



    <div class="clear"></div>
    <div class="form_left">
        <?php echo $form->labelEx($model, 'dienthoai'); ?>
    </div>
    <div class="form_right">
        <?php echo $form->textField($model, 'dienthoai',array('size' => 50, 'maxlength' => 50)); ?>
        <?php echo $form->error($model, 'dienthoai'); ?>
    </div>

    <div class="clear"></div>
    <div class="form_left">
        <?php echo $form->labelEx($model, 'fax'); ?>
    </div>
    <div class="form_right">
        <?php echo $form->textField($model, 'fax',array('size' => 50, 'maxlength' => 50)); ?>
        <?php echo $form->error($model, 'fax'); ?>
    </div>
        <div class="clear"></div>
    <div class="form_left">
        <?php echo $form->labelEx($model, 'noidung'); ?>
    </div>
    <div class="form_right">
        <?php echo $form->textArea($model, 'noidung',array('style' => 'width: 400px; height: 200px;','required' => 'required')); ?>
        <?php echo $form->error($model, 'noidung'); ?>
    </div>

    <div class="clear"></div>
        <?php
    $session = new CHttpSession;
    $session->open();
    if ($session['user_salesmart'][1] > 98) {
        ?>
        <div class="form_left">
            <?php echo $form->labelEx($model, 'flag'); ?>
        </div>
        <div class="form_right">

            <?php echo $form->dropDownList($model, 'flag', array('0' => 'Mới đặt', '1' => 'Đang xử lý','2'=>'Hoàn tất')); ?>
        </div>
        <div class="clear"></div>
    <?php } ?>
    <div class="clear"></div>
    <div class="form_left">.
    </div>
    <div class="form_right">
        <?php echo CHtml::submitButton('Cập nhật'); ?>
    </div>

    <?php $this->endWidget(); ?>

   
</div><!-- form -->